package work1.rectangle;

public class Rectangle {
    private int a;
    private int b;
    Rectangle(){

    }
    Rectangle(int a,int b){
        this.a=a;
        this.b=b;
    }
    void m2(){
        System.out.println("面积是"+a*b);
    }
    void c(){
        System.out.println("周长是"+(a+b)*2);
    }
}
